//
//  EvaluationDetailViewController.m
//  一键车讯
//
//  Created by 江玉元 on 14/10/31.
//  Copyright (c) 2014年 lanou.3g.com. All rights reserved.
//

#import "EvaluationDetailViewController.h"

@interface EvaluationDetailViewController ()
@property (nonatomic, retain)UIScrollView *scrollView;
@end

@implementation EvaluationDetailViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y - 94, self.view.frame.size.width, self.view.frame.size.height + 94)];
    [self.view addSubview:_scrollView];
    [_scrollView release];
    
    _scrollView.bounces = NO;
    
    _scrollView.delegate = self;
    
    
    
    
    
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.evaluation.url] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60];
    
    [webView loadRequest:request];
    
    [self.scrollView addSubview:webView];
    [webView release];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
